//
//  STMStoreFlowModel.h
//  StoreManagement
//
//  Created by centling on 16/5/24.
//  Copyright © 2016年 alfred. All rights reserved.
//

#import <JSONModel/JSONModel.h>

@class STMStoreFlowResult;
@class STMStoreFlowXaxis;
@class STMStoreFlowLegend;
@protocol STMStoreFlowSeries <NSObject>
@end


@interface STMStoreFlowModel : JSONModel

@property (strong, nonatomic) NSString* code;
@property (strong, nonatomic) NSString* message;
@property (strong, nonatomic) STMStoreFlowResult<Optional>* result;

@end

@interface STMStoreFlowResult : JSONModel

@property (strong, nonatomic) STMStoreFlowXaxis* xAxis;
@property (strong, nonatomic) STMStoreFlowLegend* legend;
@property (strong, nonatomic) NSArray<STMStoreFlowSeries>* series;
@property (strong, nonatomic) NSString* title;
@property (strong, nonatomic) NSString* yAxis;

@end


@interface STMStoreFlowXaxis : JSONModel

@property (strong, nonatomic) NSArray* categories;

@end

@interface STMStoreFlowLegend : JSONModel

@property (strong, nonatomic) NSString* enabled;

@end


@interface STMStoreFlowSeries : JSONModel

@property (strong, nonatomic) NSString* name;
@property (strong, nonatomic) NSArray* data;

@end
